import http from '@/utils/request'

export function updateInfo(param) {
	return http.post('/completeAvatarAndNickname', param)
}

export function updateAvatar(param) {
	return http.post('/updateAvatar', param)
}

export function updateNickname(param) {
	return http.post('/updateNickname',param)
}

export function getMyWallet() {
	return http.get('/user/my/wallet')
}

export function getMyShop() {
	return http.get('/shop/getId')
}

export function getMyShopCode() {
	return http.get('/shop/my/codeurl')
}

export function getMyInfoNoSecure() {
	return http.get('/user/my/infoNoSecure')
}

export function getMyInfo() {
	return http.get('/user/my/info')
}

export function getUserPhone(param) {
	return http.post('/getphone',param)
}